<?php

namespace Common\Service;


/** 
 * 站内信 消息内容
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */

Class MailService extends BaseService
{


	/**
	convers_id -> MailUsers::id
	id, uid, target_id, content, send_time, is_read
	1    1      5
	1    5      1

	 */
	protected $_auto = array(
        array('content', 'htmlspecialchars', self::MODEL_BOTH, 'function'),
        array('uid', 'intval', self::MODEL_BOTH, 'function'),
        array('target_id', 'intval', self::MODEL_BOTH, 'function'),
        array('is_read', 0, self::MODEL_INSERT),
        array('is_read', 'intval', self::MODEL_BOTH, 'function'),
        array('send_time', NOW_TIME, self::MODEL_INSERT),
    );


}